package com.example.spring_demo.ioc.v1;

/**
 * @className: Car
 * @author: 芃
 * @description:
 * @date: 2024/12/23 11:12
 */
public class Car {
    private Framework framework;

    private int size;

    public Car(int size) {
        framework = new Framework(size);
        this.size = size;
        System.out.println("Car is created");
    }


    public void run(){
        System.out.println("轮毂大小为："+ size + "的Car is running");
    }
}
